package lab02.Test23;

import lab02.Test16.Calculator;

import java.util.Calendar;
import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Calendar time=Calendar.getInstance();
        Scanner scan=new Scanner(System.in);
        int Year,Month,Day;
        System.out.println("年:");
        Year=scan.nextInt();
        System.out.println("月：");
        Month=scan.nextInt();
        System.out.print("日：");
        Day=scan.nextInt();
        time.set(Year, Month-1,Day);
        int Day1=time.get(Calendar.DAY_OF_WEEK);
        System.out.println("星期"+(Day-1));

    }

}
